home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / eText5 / Source / eText.subproj / eText.PlainText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-20  |  2.5 KB  |  168 lines

  1. {\rtf0\ansi{\fonttbl\f1\fmodern Courier;\f4\ftech Symbol;\f3\fmodern Ohlfs;}
  2. \margl40
  3. \margr40
  4. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f1\b0\i0\ulnone\fs24\fc0\cf0 //—————————————————————————————————————————————————————————————————————————————\
  5. //
  6. \i     
  7. \b FILENAME
  8. \b0 :    
  9. \b\i0 eText.PlainText.h \
  10.  
  11. \b0 //
  12. \i     
  13. \b SUMMARY
  14. \b0 :    
  15. \b\i0 Interface for the PlainText markup formats of eText (ASCII, C)
  16. \b0 \
  17. //    
  18. \b\i CATEGORY
  19. \b0 :
  20. \i0     
  21. \b PlainText
  22. \b0 \
  23. //    
  24. \b\i PROTOCOLS
  25. \b0 :
  26. \i0     
  27. \b <ASCIISupport>
  28. \b0 , 
  29. \b <CSupport>
  30. \b0 \
  31. //    
  32. \b\i INTERFACE
  33. \b0 :
  34. \i0     
  35. \b None
  36. \b0 \
  37. //    
  38. \b\i AUTHOR
  39. \b0 :        
  40. \b\i0 Rohit Khare
  41. \b0 \
  42. //    
  43. \b\i COPYRIGHT
  44. \b0 :    
  45. \f4\i0 ½
  46. \f1\b 1993,94 California Institure of Technology, eText Project\
  47.  
  48. \b0 //—————————————————————————————————————————————————————————————————————————————\
  49. //    
  50. \b\i Description
  51. \b0\i0 \
  52. //        These methods deal with ASCII and C output. They also declare a\
  53. //    printf proc (%y) that uses NXToAscii to clean up the upper 128.\
  54. //—————————————————————————————————————————————————————————————————————————————\
  55. //    
  56. \b\i History
  57. \b0\i0 \
  58. //    11/20/94:    
  59. \b Extended to support writing ranges.
  60. \b0 \
  61. //    10/17/94:    
  62. \b Cleaned up for eText5.
  63. \b0 \
  64. //    08/05/94:    
  65. \b Completely Rearchitected for 5.0. RK
  66. \b0 \
  67. //—————————————————————————————————————————————————————————————————————————————\
  68. //    
  69. \b Imported Interfaces
  70. \b0 \
  71. //\
  72.     #import "
  73. \b eText.Class.h
  74. \b0 "\
  75. \
  76. //—————————————————————————————————————————————————————————————————————————————\
  77. //    
  78. \b Encoder API
  79. \b0 \
  80. //\
  81.     extern void 
  82. \b ASCIIEncoder
  83. \b0 (NXStream *
  84. \b stream
  85. \b0 , unsigned char *
  86. \b item
  87. \b0 , int 
  88. \b len
  89. \b0 );\
  90. \
  91.  
  92. \i @interface eText(PlainText)\
  93.  
  94. \i0 //—————————————————————————————————————————————————————————————————————————————\
  95. //    
  96. \b Path Operators\
  97.  
  98. \b0 //\
  99.     - 
  100. \b readASCIIfromPath
  101. \b0 :(const char *)path;\
  102.     - 
  103. \b writeASCIItoPath
  104. \b0 :(const char *)path;\
  105. \
  106.     - 
  107. \b readCfromPath
  108. \b0 :(const char *)path;\
  109.     - 
  110. \b writeCtoPath
  111. \b0 :(const char *)path;\
  112. \
  113. //—————————————————————————————————————————————————————————————————————————————\
  114. //    
  115. \b Stream Operators
  116. \b0 \
  117. //\
  118.     - 
  119. \b readASCII
  120. \b0 : (
  121. \b NXStream
  122. \b0  *)s;\
  123.     - 
  124. \b writeASCII
  125. \b0 : (
  126. \b NXStream
  127. \b0  *)s;\
  128.     - 
  129. \b writeASCII
  130. \b0 : (
  131. \b NXStream
  132. \b0  *)s 
  133. \b from
  134. \b0 :(
  135. \b int
  136. \b0 ) start 
  137. \b to
  138. \b0 :(
  139. \b int
  140. \b0 ) end;\
  141.     \
  142.     - 
  143. \b readC
  144. \b0 : (
  145. \b NXStream
  146. \b0  *)s;\
  147.     - 
  148. \b writeC
  149. \b0 : (
  150. \b NXStream
  151. \b0  *)s;\
  152.     - 
  153. \b writeC
  154. \b0 : (
  155. \b NXStream
  156. \b0  *)s 
  157. \b from
  158. \b0 :(
  159. \b int
  160. \b0 ) start 
  161. \b to
  162. \b0 :(
  163. \b int
  164. \b0 ) end;\
  165.     \
  166. @end
  167. }
  168.